/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-03-02 16:38:49
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-05-26 15:10:56
 * @FilePath: \cxl-h5\src\apis\home\index.ts
 */
import { request as axios } from '@/axios/index'

/**
 * 获取用户余额信息
 * optStatus 操作状态《1.正常;2.退款中;3.已退款)
 * @returns
 */
export const getWalletInfo = (productConfigId?: string) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/query-remain-amount',
        params: { productConfigId }
    })
}

export const getUserInfo = () => {
    return axios({
        method: 'get',
        url: '/api/system/portal/user/info'
    })
}
